package com.itheima.demo.demo11;

import java.io.IOException;
import java.io.OutputStream;
import java.net.ServerSocket;
import java.net.Socket;


public class 系统 {
    public static void main(String[] args) throws IOException {
        ServerSocket ss=new ServerSocket(8888);
        Socket socket = ss.accept();
        OutputStream os = socket.getOutputStream();
        os.write("我是系统".getBytes());
        os.close();
        socket.close();

    }
}
